package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorSevenMapper;
import com.erms.lab.domain.LabMajorSeven;
import com.erms.lab.service.ILabMajorSevenService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房七Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorSevenServiceImpl implements ILabMajorSevenService 
{
    @Autowired
    private LabMajorSevenMapper labMajorSevenMapper;

    /**
     * 查询专业机房七
     * 
     * @param equipId 专业机房七ID
     * @return 专业机房七
     */
    @Override
    public LabMajorSeven selectLabMajorSevenById(Long equipId)
    {
        return labMajorSevenMapper.selectLabMajorSevenById(equipId);
    }

    /**
     * 查询专业机房七列表
     * 
     * @param labMajorSeven 专业机房七
     * @return 专业机房七
     */
    @Override
    public List<LabMajorSeven> selectLabMajorSevenList(LabMajorSeven labMajorSeven)
    {
        return labMajorSevenMapper.selectLabMajorSevenList(labMajorSeven);
    }

    /**
     * 新增专业机房七
     * 
     * @param labMajorSeven 专业机房七
     * @return 结果
     */
    @Override
    public int insertLabMajorSeven(LabMajorSeven labMajorSeven)
    {
        return labMajorSevenMapper.insertLabMajorSeven(labMajorSeven);
    }

    /**
     * 修改专业机房七
     * 
     * @param labMajorSeven 专业机房七
     * @return 结果
     */
    @Override
    public int updateLabMajorSeven(LabMajorSeven labMajorSeven)
    {
        return labMajorSevenMapper.updateLabMajorSeven(labMajorSeven);
    }

    /**
     * 删除专业机房七对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorSevenByIds(String ids)
    {
        return labMajorSevenMapper.deleteLabMajorSevenByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房七信息
     * 
     * @param equipId 专业机房七ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorSevenById(Long equipId)
    {
        return labMajorSevenMapper.deleteLabMajorSevenById(equipId);
    }
}
